package com.yuyang.gulimall.product.feign;

import com.yuyang.common.to.SkuReductionTo;
import com.yuyang.common.to.SpuBoundsTo;
import com.yuyang.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yu yang
 * @date 2023/1/1 -17:41
 */
@FeignClient("gulimall-coupon")
@Component
public interface CouponFeignService {

    @PostMapping("coupon/spubounds/save")
    public R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("coupon/skufullreduction/saveInfo")
    public R saveSkuReduction(SkuReductionTo skuReductionTo);
}